package net.dfrz.dao;

import java.util.List;

import net.dfrz.domain.User;

public interface UserDao {

	public void add(User user);

	public User load(String id);
	
	public User loadByName(String username);
	
	public User loadByNameandPassword(String username,String password);

	public int delete(String id);
	
	public int delete(User u);
	
	public int update(User user);
	
	public List<User> find(String info);

	List<User> getAll();
	
	int lock(String id,boolean islock);
}